
ul {
  margin: 0;
  padding: 0;
}
li {
  list-style: none;
}
.main {
  width: 1170px;
  margin: 0 auto;
}
.fl {
  float: left;
}
.fr {
  float: right;
}
.clearflx::after {
  content: "";
  display: block;
  clear: both;
  height: 0;
}


.header {
  a:hover{
    color: #f10180;
  }
  font-size: 12px;
  position: relative;
  z-index: 103;
  height: 30px;
  line-height: 27px;
  background-color: #f5f5f5;
  color: #777;
  .address_box {
    position: relative;
    height: 30px;
    // background: #fff;
    padding: 0 8px 0 8px;
    .more_address_box {
      height: 400px;
      position: absolute;
      top: 28px;
      left: 0;
      padding-right: 15px;
      padding-left: 15px;
      width: 470px;
      background-color: #fff;
      border: 1px solid #ccc;
    }
    .address {
      margin-right: 10px;
    }
  }
  ul {
    li {
      // box-sizing: border-box;
      float: left;
      position: relative;
      z-index: 1000;
      // border: 1px solid #000;
      .up{
        display: none;
      }
      a {
        position: relative;
        z-index: 1000;
        line-height: 27px;
        // background-color: #f5f5f5;
        color: #777;
        margin-right: 13px;
        margin-left: 13px;
      }
      a ~ span {
        position: absolute;
        margin: 0px 1px;
      }
      .gift {
        position: relative;
        top: 2px;
        display: inline-block;
        width: 15px;
        height: 18px;
        background: url(//shop.vipstatic.com/img/common/header_sign-hash-0459d02c.gif?3c0ef42f) no-repeat;
        margin-right: 3px;
      }
      .iphone {
        background-image: url(//shop.vipstatic.com/img/common/header/sprites-hash-b45bfef8.png?b3c54ac4);
        background-position: -294px -142px;
        display: inline-block;
        width: 10px;
        height: 14px;
        margin-left: 12px;
        margin-right: -10px;
        margin-top: -3px;
        vertical-align: middle;
      }
    }
    

    //登录下面的框
    .top-nav-dis {
      display: none;
      position: absolute;
      z-index: 10;
      top: 25px;
      left: -1px;
      width: 280px;
      height: 177px;
      padding: 10px 0;
      z-index: 20;
      border: 1px solid #cdcdcd;
      background-color: #fff;
      color: #333;
      .top {
        width: 240px;
        margin: auto;
        height: 66px;
        // background: red;
        padding-top: 20px;
        span {
          display: inline-block;
          margin-left: 10px;
          background-image: url(//shop.vipstatic.com/img/common/header/sprites-hash-b45bfef8.png?b3c54ac4);
          background-position: -164px -142px;
          width: 38px;
          height: 38px;
          border-radius: 50%;
          left: 30px;
        }
        .login {
          padding-left: 5px;
          width: 175px;
          border-bottom: 1px solid #eee;
        }
      }

      .collect {
        width: 241px;
        height: 78px;
        margin: auto;
        padding-left: 15px;
        a {
          margin: 0;
          padding: 0;
        }
        span {
          position: static;
          display: inline-block;
          width: 50%;
        }
      }
    }
    .top-nav-dis::after {
      content: "";
      display: block;
      width: 62px;
      height: 2px;
      background: #fff;
      position: absolute;
      top: -2px;
      left: 0;
    }
    //hover
    .loginbox:hover {
      border: 1px solid #cdcdcd;
      border-bottom: none;
      background: #fff;
      .top-nav-dis {
        display: block;
      }
    }
    //签到有礼下面的框
    .check-ins {
      display: none;
      position: absolute;
      left: -180px;
      background-color: #fff;
      width: 460px;
      height: 152px;
      padding: 0 29px;
      border: 1px solid #cdcdcd;
      .head-sign-day {
        height: 104px;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
        display: flex;
        justify-content: space-between;
        margin-bottom: 13px;
        .solid {
          position: absolute;
          width: 395px;
          height: 2px;
          background-color: #ccc;
          top: 50px;
          left: 4px;
          z-index: 1;
        }
        .day {
          background-image: url(//shop.vipstatic.com/img/common/header/sprites-hash-b45bfef8.png?b3c54ac4);
          background-position: -216px -184px;
          width: 24px;
          height: 16px;
          z-index: 1;
          margin-right: 10px;
          display: inline-block;
          position: static;
          margin-top: 43px;
          position: relative;
          z-index: 2;
          p {
            margin-top: 20px;
            margin-left: 4px;
          }
        }
        .aa {
          background-position: -216px -184px;
        }
        .fristtday {
          background-position: -244px -184px;
        }
        .lastday {
          background-position: -188px -184px;
          margin-right: 0;
        }
      }
      .qd{
        text-decoration:underline
      }

      button {
        width: 70px;
        height: 22px;
        background-color: #f10180;
        border: 1px solid #f10180;
        // float: right;
        color: #fff;
        line-height: 18px;
        border-radius: 3px;
        // padding: 0 11px;
        display: inline-block;
      }
    }
    .giftbox:hover{
      .check-ins{
        display: block;
      }
    }

    //我的收藏 会员俱乐部 客户服务 下面的框
    .top-nav-list {
      display: none;
      width: 100%;
      // height: 100px;
      border: 1px solid #cdcdcd;
      position: absolute;
      left: -1px;
      background: #fff;
      // padding-top: 5px;
      // padding-bottom: 15px;
      padding: 5px 1px 15px 1px;
      border-top: none;
      span {
        height: 30px;
        display: block;
        padding-left: 11px;
        padding-right: 10px;
      }
    }
    //我的特卖
    .salebox:hover{
      border: 1px solid #cdcdcd;
      background: #fff;
      
      .down{
        display: none;
      }
      .up{
        display: inline;
      }
      .top-nav-list{
        display: block;
        width: 88px;
      }
    }
    //会员俱乐部
    .jlbbox:hover{
      border: 1px solid #cdcdcd;
      background: #fff;
      .down{
        display: none;
      }
      .up{
        display: inline;
      }
      .top-nav-list{
        display: block;
        width: 100px;
        
      }
    }
    //客户服务
  
    .kfbox:hover{
      border: 1px solid #cdcdcd;
      background: #fff;
      
      .down{
        display: none;
      }
      .up{
        display: inline;
      }
      .top-nav-list{
        display: block;
        width: 97px;
      }
    }
    //手机版下面的框
    .ewm {
      display: none;
      border: 1px solid #cdcdcd;
      padding-top: 10px;
      position: absolute;
      // height: 250px;
      width: 200px;
      background: #fff;
      left: -125px;
      img {
        width: 180px;
        margin-left: 10px;
      }
      p {
        text-align: center;
        font-size: 14px;
        color: #000;
        font-weight: bold;
        margin: 7px 0;
      }
    }
    .ewm::after {
      content: "";
      display: block;
      width: 74px;
      height: 2px;
      background: #fff;
      position: absolute;
      top: -2px;
      right: 0;
    }
    .ewmbox:hover{
      border: 1px solid #cdcdcd;
      border-bottom: none;
      background: #fff;
      .ewm{
        display: block;
      }
    }
    // 更多下面的框
    .more {
      display: none;
      position: absolute;
      width: 302px;
      height: 168px;
      background: #fff;
      left: -239px;
      padding: 0 20px;
      border: 1px solid #cdcdcd;
      
      a {
        margin: 0;
        margin-right: 20px;
      }
      h5 {
        font-weight: bold;
        line-height: 5px;
        margin-top: 20px;
        margin-bottom: 8px;
      }
      .top {
        border-bottom: 1px solid #eee;
      }
    }
    .more::after {
      content: "";
      display: block;
      width: 62px;
      height: 2px;
      background: #fff;
      position: absolute;
      top: -2px;
      right: 0;
    }
    .morebox:hover{
      border: 1px solid #cdcdcd;
      border-bottom: none;
      background: #fff;
      .down{
        display: none;
      }
      .up{
        display: inline;
      }
      .more{
        display: block;
      }
    }
  }
}
